package com.chuangshi.core.vote.playervote.controller.desktop;

import com.chuangshi.core.kit.Controller;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.RestController;

/**
 * 投票记录桌面端控制器
 *
 * @author ggliming
 * @date 2019-02-21
 */
@Api(tags = "投票记录桌面端控制器")
@RestController
public class PlayerVoteDesktopController extends Controller {

//    @Autowired
//    private PlayerVoteService playerVoteService;
//
//    @ApiOperationSort(value = 10)
//    @ApiOperation(value = "获取投票记录列表", httpMethod = "POST")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "body", value = "请求参数", required = true, paramType = "body", dataType = "PlayerVoteDesktopV1ListRequest")
//    })
//    @ApiResponses({
//            @ApiResponse(code = 200, message = "返回参数", response = PlayerVoteDesktopV1ListResponse.class)
//    })
//    @RequestMapping(value = "/vote/player/vote/desktop/v1/list", method = {RequestMethod.POST}, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
//    public Map<String, Object> v1List(@ApiIgnore @RequestBody PlayerVoteDesktopV1ListRequest body) {
//        validateRequest(body);
//
//        validateResponse(PlayerVoteDesktopV1ListResponse.class);
//
//        return renderJson(new PlayerVoteDesktopV1ListResponse());
//    }
//
//    @ApiOperationSort(value = 20)
//    @ApiOperation(value = "获取单条投票记录", httpMethod = "POST")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "body", value = "请求参数", required = true, paramType = "body", dataType = "PlayerVoteDesktopV1FindRequest")
//    })
//    @ApiResponses({
//            @ApiResponse(code = 200, message = "返回参数", response = PlayerVoteDesktopV1FindResponse.class)
//    })
//    @RequestMapping(value = "/vote/player/vote/desktop/v1/find", method = {RequestMethod.POST}, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
//    public Map<String, Object> v1Find(@ApiIgnore @RequestBody PlayerVoteDesktopV1FindRequest body) {
//        validateRequest(body);
//
//        validateResponse(PlayerVoteDesktopV1FindResponse.class);
//
//        return renderJson(new PlayerVoteDesktopV1FindResponse());
//    }
//
//    @ApiOperationSort(value = 30)
//    @ApiOperation(value = "新增投票记录", httpMethod = "POST")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "body", value = "请求参数", required = true, paramType = "body", dataType = "PlayerVoteDesktopV1SaveRequest")
//    })
//    @ApiResponses({
//            @ApiResponse(code = 200, message = "新增成功")
//    })
//    @RequestMapping(value = "/vote/player/vote/desktop/v1/save", method = {RequestMethod.POST}, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
//    public Map<String, Object> v1Save(@ApiIgnore @RequestBody PlayerVoteDesktopV1SaveRequest body) {
//        validateRequest(body);
//
//        Boolean result = false;
//
//        return renderJson(result, result ? "新增成功" : "新增不成功");
//    }
//
//    @ApiOperationSort(value = 40)
//    @ApiOperation(value = "修改投票记录", httpMethod = "POST")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "body", value = "请求参数", required = true, paramType = "body", dataType = "PlayerVoteDesktopV1UpdateRequest")
//    })
//    @ApiResponses({
//            @ApiResponse(code = 200, message = "修改成功")
//    })
//    @RequestMapping(value = "/vote/player/vote/desktop/v1/update", method = {RequestMethod.POST}, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
//    public Map<String, Object> v1Update(@ApiIgnore @RequestBody PlayerVoteDesktopV1UpdateRequest body) {
//        validateRequest(body);
//
//        Boolean result = false;
//
//        return renderJson(result, result ? "修改成功" : "修改不成功");
//    }
//
//    @ApiOperationSort(value = 50)
//    @ApiOperation(value = "删除投票记录", httpMethod = "POST")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "body", value = "请求参数", required = true, paramType = "body", dataType = "PlayerVoteDesktopV1DeleteRequest")
//    })
//    @ApiResponses({
//            @ApiResponse(code = 200, message = "删除成功")
//    })
//    @RequestMapping(value = "/vote/player/vote/desktop/v1/delete", method = {RequestMethod.POST}, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
//    public Map<String, Object> v1Delete(@ApiIgnore @RequestBody PlayerVoteDesktopV1DeleteRequest body) {
//        validateRequest(body);
//
//        Boolean result = false;
//
//        return renderJson(result, result ? "删除成功" : "删除不成功");
//    }

}